package com.fnfn.sdk.api.entity;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.fnfn.sdk.api.common.AbstractBean;

public class User extends AbstractBean {

    private static final long serialVersionUID = 1L;

    //用户ID
    private Integer cUserId;

    //操作ID
    private Integer cOperatorId;
    //用户姓名
    private String cUsername;
    //分组名字
    private String groupName;
    //操作用户

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    private String cOperatorUser;
    //用户密码
    private String cPassword;
    //确定密码
    private String oldPassword;
    //姓名
    private String cNickname;

    private String cAvatar;

    private Integer cDepartmentId;
    
    private Integer cRoleId;

    private String createTime;

    private String updateTime;

    private Short state;

    private Set<Integer> cPermissionIds;
    
    private Set<Integer> cDepartmentIds;

    private String startDate;

    private String endDate;

    private String cDepartmentName;

    private String cRoleName;

    private List<Permission> cPermissions;

    private Integer offset;

    private Integer limit;

    private Integer user_type;

    private String jobnum;
    
    private String c_group_id;

    private String contact;
    //邮箱
    private String email;

    private Integer status;

    private String name;


    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getC_group_id() {
		return c_group_id;
	}

	public void setC_group_id(String c_group_id)
    {
		this.c_group_id = c_group_id;
	}

	public static long getSerialversionuid()
    {
		return serialVersionUID;
	}

	public Set<Integer> getcDepartmentIds()
    {
        return cDepartmentIds;
    }

    public void setcDepartmentIds(Set<Integer> cDepartmentIds) {
        this.cDepartmentIds = cDepartmentIds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getJobnum() {
        return jobnum;
    }

    public void setJobnum(String jobnum) {
        this.jobnum = jobnum;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUser_type() {
        return user_type;
    }

    public void setUser_type(Integer user_type) {
        this.user_type = user_type;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getcOperatorId() {
        return cOperatorId;
    }

    public void setcOperatorId(Integer cOperatorId) {
        this.cOperatorId = cOperatorId;
    }

    public String getcOperatorUser() {
        return cOperatorUser;
    }

    public void setcOperatorUser(String cOperatorUser) {
        this.cOperatorUser = cOperatorUser;
    }

    public List<Permission> getcPermissions() {
        return cPermissions;
    }

    public void setcPermissions(List<Permission> cPermissions) {
        this.cPermissions = cPermissions;
    }

    public String getcDepartmentName() {
        return cDepartmentName;
    }

    public void setcDepartmentName(String cDepartmentName) {
        this.cDepartmentName = cDepartmentName;
    }

    public String getcRoleName() {
        return cRoleName;
    }

    public void setcRoleName(String cRoleName) {
        this.cRoleName = cRoleName;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Set<Integer> getcPermissionIds() {
        if (cPermissionIds == null) {
            cPermissionIds = new HashSet<>();
        }
        return cPermissionIds;
    }

    public void setcPermissionIds(Set<Integer> cPermissionIds) {
        this.cPermissionIds = cPermissionIds;
    }

    public Integer getcUserId() {
        return cUserId;
    }

    public void setcUserId(Integer cUserId) {
        this.cUserId = cUserId;
    }

    public String getcUsername() {
        return cUsername;
    }

    public void setcUsername(String cUsername) {
        this.cUsername = cUsername == null ? null : cUsername;
    }

    public String getcPassword() {
        return cPassword;
    }

    public void setcPassword(String cPassword) {
        this.cPassword = cPassword == null ? null : cPassword;
    }

    public String getcNickname() {
        return cNickname;
    }

    public void setcNickname(String cNickname) {
        this.cNickname = cNickname == null ? null : cNickname;
    }

    public String getcAvatar() {
        return cAvatar;
    }

    public void setcAvatar(String cAvatar) {
        this.cAvatar = cAvatar == null ? null : cAvatar;
    }

    public Integer getcDepartmentId() {
        return cDepartmentId;
    }

    public void setcDepartmentId(Integer cDepartmentId) {
        this.cDepartmentId = cDepartmentId;
    }

    public Integer getcRoleId() {
        return cRoleId;
    }

    public void setcRoleId(Integer cRoleId) {
        this.cRoleId = cRoleId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "cUserId=" + cUserId +
                ", cOperatorId=" + cOperatorId +
                ", cUsername='" + cUsername + '\'' +
                ", cOperatorUser='" + cOperatorUser + '\'' +
                ", cPassword='" + cPassword + '\'' +
                ", oldPassword='" + oldPassword + '\'' +
                ", cNickname='" + cNickname + '\'' +
                ", cAvatar='" + cAvatar + '\'' +
                ", cDepartmentId=" + cDepartmentId +
                ", cRoleId=" + cRoleId +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", state=" + state +
                ", cPermissionIds=" + cPermissionIds +
                ", cDepartmentIds=" + cDepartmentIds +
                ", startDate='" + startDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", cDepartmentName='" + cDepartmentName + '\'' +
                ", cRoleName='" + cRoleName + '\'' +
                ", cPermissions=" + cPermissions +
                ", offset=" + offset +
                ", limit=" + limit +
                ", user_type=" + user_type +
                ", jobnum='" + jobnum + '\'' +
                ", c_group_id='" + c_group_id + '\'' +
                ", contact='" + contact + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", name='" + name + '\'' +
                '}';
    }
}
